package com.xquant.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 更新标记表
 * @TableName TIMP_SIGN_TEST
 */
@TableName(value ="TIMP_SIGN_TEST")
public class TimpSignTest implements Serializable {
    /**
     * 目的表
     */
    @TableField("DEST_TABLE")
    private String destTable;

    /**
     * 管道序号
     */

    @TableField("PIPE_ID")
    private Long pipeId;

    /**
     * 更新标志名称(VAR_..._VAR)
     */

    @TableField("VAR_NAME")
    private String varName;

    /**
     * 目的表名称
     */
    @TableField("DEST_NAME")
    private String destName;

    /**
     * 管道名称
     */
    @TableField("PIPE_NAME")
    private String pipeName;

    /**
     * 更新最大值
     */
    @TableField("MAX_ID")
    private String maxId;

    /**
     * 更新时间
     */
    @TableField("UPDATE_TIME")
    private Date updateTime;

    /**
     * 上一次的更新最大值
     */
    @TableField("LAST_MAX_ID")
    private String lastMaxId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 目的表
     */
    public String getDestTable() {
        return destTable;
    }

    /**
     * 目的表
     */
    public void setDestTable(String destTable) {
        this.destTable = destTable;
    }

    /**
     * 管道序号
     */
    public Long getPipeId() {
        return pipeId;
    }

    /**
     * 管道序号
     */
    public void setPipeId(Long pipeId) {
        this.pipeId = pipeId;
    }

    /**
     * 更新标志名称(VAR_..._VAR)
     */
    public String getVarName() {
        return varName;
    }

    /**
     * 更新标志名称(VAR_..._VAR)
     */
    public void setVarName(String varName) {
        this.varName = varName;
    }

    /**
     * 目的表名称
     */
    public String getDestName() {
        return destName;
    }

    /**
     * 目的表名称
     */
    public void setDestName(String destName) {
        this.destName = destName;
    }

    /**
     * 管道名称
     */
    public String getPipeName() {
        return pipeName;
    }

    /**
     * 管道名称
     */
    public void setPipeName(String pipeName) {
        this.pipeName = pipeName;
    }

    /**
     * 更新最大值
     */
    public String getMaxId() {
        return maxId;
    }

    /**
     * 更新最大值
     */
    public void setMaxId(String maxId) {
        this.maxId = maxId;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 上一次的更新最大值
     */
    public String getLastMaxId() {
        return lastMaxId;
    }

    /**
     * 上一次的更新最大值
     */
    public void setLastMaxId(String lastMaxId) {
        this.lastMaxId = lastMaxId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TimpSignTest other = (TimpSignTest) that;
        return (this.getDestTable() == null ? other.getDestTable() == null : this.getDestTable().equals(other.getDestTable()))
            && (this.getPipeId() == null ? other.getPipeId() == null : this.getPipeId().equals(other.getPipeId()))
            && (this.getVarName() == null ? other.getVarName() == null : this.getVarName().equals(other.getVarName()))
            && (this.getDestName() == null ? other.getDestName() == null : this.getDestName().equals(other.getDestName()))
            && (this.getPipeName() == null ? other.getPipeName() == null : this.getPipeName().equals(other.getPipeName()))
            && (this.getMaxId() == null ? other.getMaxId() == null : this.getMaxId().equals(other.getMaxId()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getLastMaxId() == null ? other.getLastMaxId() == null : this.getLastMaxId().equals(other.getLastMaxId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDestTable() == null) ? 0 : getDestTable().hashCode());
        result = prime * result + ((getPipeId() == null) ? 0 : getPipeId().hashCode());
        result = prime * result + ((getVarName() == null) ? 0 : getVarName().hashCode());
        result = prime * result + ((getDestName() == null) ? 0 : getDestName().hashCode());
        result = prime * result + ((getPipeName() == null) ? 0 : getPipeName().hashCode());
        result = prime * result + ((getMaxId() == null) ? 0 : getMaxId().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getLastMaxId() == null) ? 0 : getLastMaxId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", destTable=").append(destTable);
        sb.append(", pipeId=").append(pipeId);
        sb.append(", varName=").append(varName);
        sb.append(", destName=").append(destName);
        sb.append(", pipeName=").append(pipeName);
        sb.append(", maxId=").append(maxId);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", lastMaxId=").append(lastMaxId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}